#region Using Statements
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Storage;
#endregion

namespace MegaEngine.Source.Sprites
{
    class TetrisBrick : Sprite
    {
        public TetrisBrick()
        {
            init();
            this.color = Color.White;
        }
        public override bool update(float xOrigin, float yOrigin, int width, int height, GameTime gameTime, ArrayList environment, Vector2 theOrigin)
        {
            Vector2 movement = velocity * (float)gameTime.ElapsedGameTime.TotalSeconds;
            updateY(yOrigin, width, gameTime, movement, 0f);
            if (detectYCollisions(movement, environment) != -1)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        public override Rectangle getBounds()
        {
            bounds.Height = texture.Height;
            bounds.Width = texture.Width;
            return bounds;
        }
        public override void onCollission(Sprite other)
        {
        }

        public override void input()
        {
        }
        public override void updateAnimationState()
        {
            throw new Exception("The method or operation is not implemented.");
        }
    }
}
